from API.base_service_api import BaseService


class OrderSettingService(BaseService):
    # 添加预约设置
    def add(self,data):
        resp = self.client.invoke("OrderSettingService","add",data)
        # 增加判断  正确 null 数据格式错误 No  数据错误 Failed
        if resp == "null":
            return True
        else:
            return False
if __name__ == '__main__':
    ms = OrderSettingService()
    data =[{"orderDate":"2022-9-20 00:00:00","number":5000}]
    resp = ms.add(data)
    print("响应数据",resp)
    print("响应数据", type(resp))